package com.github.permissiondog.cancanpbackend.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

public class ChoiceCreateRequest {
    @NotNull(message = "问题 ID 不能为空")
    public Integer questionId;
    @Size(min = 1, message = "选项列表不能为空")
    public List<@Size(min = 1, max = 20, message = "选项长度在1-20字符之间") String> names;
}
